//
//  ViewController.swift
//  MagicWeibo
//
//  Created by 李明禄 on 15/10/27.
//  Copyright © 2015年 http://blog.csdn.net/netluoriver. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

      
        let filePath = NSBundle.mainBundle().pathForResource("loginBackground", ofType: "gif")
        
        let gif = NSData(contentsOfFile: filePath!)
        
        
        let webViewBG = UIWebView(frame: self.view.frame)
        webViewBG.loadData(gif!, MIMEType: "image/gif", textEncodingName: String(), baseURL: NSURL())
        webViewBG.userInteractionEnabled = false;
        self.view.addSubview(webViewBG)
        
        
//        Let filter = UIView()
//        filter.frame = self.view.frame
//        filter.backgroundColor = UIColor.blackColor()
//        filter.alpha = 0.05
//        self.view.addSubview(filter)
        
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

